import request from '@/utils/request'

// 查询质检工单控制列表
export function listNcQualityInspectionControl(query) {
  return request({
    url: '/business/NcQualityInspectionControl/list',
    method: 'get',
    params: query
  })
}

// 查询质检工单控制详细
export function getNcQualityInspectionControl(id) {
  return request({
    url: '/business/NcQualityInspectionControl/' + id,
    method: 'get'
  })
}

// 新增质检工单控制
export function addNcQualityInspectionControl(data) {
  return request({
    url: '/business/NcQualityInspectionControl',
    method: 'post',
    data: data
  })
}

// 修改质检工单控制
export function updateNcQualityInspectionControl(data) {
  return request({
    url: '/business/NcQualityInspectionControl',
    method: 'put',
    data: data
  })
}

// 删除质检工单控制
export function delNcQualityInspectionControl(id) {
  return request({
    url: '/business/NcQualityInspectionControl/' + id,
    method: 'delete'
  })
}
